/**
 * 
 */
package controllers;

import play.mvc.Controller;
import play.mvc.Result;

/**
 * @author niebje
 *
 */
public class Messages extends Controller {
	/**
	 * 
	 * @return A list of messages, preferably in JSON, could also support XML I suppose
	 */
	public static Result list(Integer length, Integer page) {
		return ok("A list of messages will  be returned, limited to length: "+length+
				" and paged from page: "+page );
	}
	/**
	 * Returns a single message found by ID
	 * @param id the id of the message
	 * @return a single message, preferably in JSON, could also support XML I suppose
	 */
	public static Result message(Long id) {
		return ok("Hi from message with the ID:" +id);
	}

}
